function create_updated_collection(collection_a, object_b) {
  //在这里写入代码
  var result=[];
  for(let item of collection_a){
    let array=object_b.value;
    if(array.includes(item.key)){
      item.count--;
    }
    result.push(item);
  }
  return result;
}

module.exports = create_updated_collection;
